FROM php:7.3-fpm-alpine

# 设置apk镜像源
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
# 安装mysql
RUN apk update --no-cache
RUN apk add mysql --nocache
# 暴露端口
EXPOSE 9000
CMD ["php-fpm"]